<layout name="layout"/>
<style>
    body {
        background: #fff;
    }
</style>
<div class="row">
    <div class="col-lg-12">
        <ul class="breadcrumb">
            <li><a href="{:U('application/subscribemgr')}"><i class="icon-home"></i> 应用中心</a></li>
            <volist name="navPage" id="navi">
                <li><a href="{$navi.url}">{$navi.name}</a></li>
            </volist>
        </ul>
    </div>
</div>
<div class="row">
    <div class="col-lg-12">
        <section class="panel">
            <div class="col-lg-12" style="width: 100%; display:inline-block;margin-top:10px;margin-bottom:0px;padding: 0px;height: 25px;">
                <a href="{:U('Application/add_subscribe')}" class="button button-primary button-rounded button-tiny btn-workCalendar" style="position: absolute;right: 0px;">添加产品</a>
            </div>
            <div class="clearfix"></div>
            <div class="namage_cont mt10 bdt_ccc">
                <table class="table text-center">
                    <thead>
                    <tr>
                        <th class="wp5">序号</th>
                        <th class="wp10">产品ID</th>
                        <th class="wp10">产品名称</th>
                        <th class="wp10">所属应用</th>
                        <th class="wp10">会员时长</th>
                        <th class="wp10">金额(元)</th>
                        <th class="wp10">状态</th>
                        <th class="wp10">操作</th>
                    </tr>
                    </thead>
                    <tbody class="ajax-dom">
                    <volist name="dataList" id="vo" key="k">
                        <tr class="c_list">
                            <td class="wp5">{$k}</td>
                            <td class="wp10">{$vo.product_channel}</td>
                            <td class="wp10">{$vo.product_name}</td>
                            <td class="wp10">{$vo.application_name}</td>
                            <td class="wp10">{$vo.product_time}</td>
                            <td class="wp10">{$vo.pay}</td>
                            <td class="wp10">{$vo.show_state}</td>
                            <td class="">
                                <a href="{:U('Application/edit_subscribe', array ('product_id' => $vo['product_id']))}" class="btn btn-primary btn-xs">编 辑</a>
                                <a href="javascript:;" onclick="application.delSubscribe({$vo.product_id});" class="btn btn-danger btn-xs">删 除</a>
                            </td>
                        </tr>
                    </volist>
                    </tbody>
                </table>
                <empty name="dataList">
                    <div class="noData-tips">暂无相关信息！</div>
                </empty>
            </div>
        </section>
    </div>
</div>
<div class="paginationU">{$page}</div>
<script src="__PUBLIC__/js/module/module.application.js"></script>
<script>
    var APP = "__APP__";
    var application = new Application();

    $(function () {
        application.init();
    });
</script>